import sqlite3

def con():
    conn = sqlite3.connect("/home/tos/test.db")
    #conn.execute('drop table Node')
    conn.execute('''CREATE TABLE Node
       (ID INT ,
       NodeID int not null,
       Temp          int    NOT NULL,
       Parent INT not null);''')

def sel():
	conn = sqlite3.connect("/home/tos/test.db")
	re = conn.execute("select * from node")
	for i in re:
		print i

sel()
